package com.jwaoo.chat.session.avchat;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.dx.as.UI;
import com.jwaoo.chat.ChatHelpter;

/**
 * Created by jwaoo on 2018/1/20.
 */

public class SearchBluetoothActivity extends UI{
    private static Activity searchBluetoothActivity;
    @Override
    protected void onActivityCreate(Bundle savedInstanceState) {
        setContentView(FloatView.getInstance().getBluetoothBaseView());
        setToolbar(null);
        this.searchBluetoothActivity = this;
    }

    public static void startSearchBluetoothActivity(){
        Intent intent = new Intent(ChatHelpter.getContext(),SearchBluetoothActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        ChatHelpter.getContext().startActivity(intent);
    }


    public static void closeSearchView(){
        if (searchBluetoothActivity != null){
            searchBluetoothActivity.finish();
            searchBluetoothActivity = null;
        }
    }


}
